﻿using PropertyChanged;
using System;
using VT.Framework.Designer.Flow;

namespace VIA.VTPlatformService
{

    [AddINotifyPropertyChangedInterface]
    public class VTFlowBlockInfo
    {
        public string FilePath { get; set; }
        public int ProjectID { get; set; }
        public int FlowIndex { get; set; }
        public string FlowName { get; set; }
        public VTFlowBlockInfo() { }
        public VTFlowBlockInfo(string path, int projectID, int flowIndex, string flowName)
        {
            FilePath = path;
            ProjectID = projectID;
            FlowIndex = flowIndex;
            FlowName = flowName;
        }

        public VTFlowBlockInfo(VTFlowBlockInfo flowBlockInfo)
        {
            FilePath = flowBlockInfo.FilePath;
            ProjectID = flowBlockInfo.ProjectID;
            FlowIndex = flowBlockInfo.FlowIndex;
            FlowName = flowBlockInfo.FlowName;
        }

        public void GetFlowBlockInfo(VTFlow flow)
        {
            FlowIndex = flow.ID;
            FlowName = flow.Name;
        }
    }
}
